package com.qianclass.talklive.app.bean;



import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by admin on 2016/6/22.
 */
public class WhiteBoardBean {

    /**
     * colour : 0XFF0000
     * currentpage : 1
     * fileid : 1235
     * imageurl :
     * linewidth : 3
     * objdata : [{"x":1291,"y":304},{"x":1291,"y":304},{"x":1251,"y":432},{"x":1168,"y":596},{"x":1063,"y":750},{"x":1005,"y":806},{"x":964,"y":824},{"x":940,"y":823},{"x":920,"y":798},{"x":883,"y":731},{"x":820,"y":619},{"x":793,"y":539},{"x":822,"y":468},{"x":896,"y":427},{"x":1073,"y":405},{"x":1269,"y":418},{"x":1416,"y":486},{"x":1480,"y":581},{"x":1486,"y":668},{"x":1446,"y":743},{"x":1295,"y":812},{"x":1035,"y":814},{"x":732,"y":743},{"x":501,"y":617},{"x":419,"y":508},{"x":451,"y":405},{"x":635,"y":311},{"x":802,"y":294},{"x":1042,"y":300},{"x":1206,"y":361},{"x":1252,"y":430},{"x":1232,"y":530},{"x":1161,"y":609},{"x":958,"y":668},{"x":692,"y":674},{"x":460,"y":626},{"x":357,"y":561},{"x":347,"y":511},{"x":365,"y":454}]
     * objid : 140154216
     * objtype : pen
     * pointcount : 39
     * rect : {"bottom":824,"left":347,"right":1486,"top":294}
     * filename : 阿里巴巴Java开发手册（公开版）.pdf
     * docserver: http://xxx:8080/
     * subcommand : addobject
     * sqlid : http://xx:8080/
     * pagenum : 32
     * filedir : ""
     * domain : ""
     */

    private String colour;
    private int currentpage;
    private int fileid;
    private String imageurl;
    private int linewidth;
    private int objid;
    private String objtype;
    private int pointcount;
    private String filename;
    private String docserver;
    private String sqlid;
    private int pagenum;
    private String filedir;
    private String domain;
    private String docid;

    public String getDocid() {
        return docid;
    }

    public void setDocid(String docid) {
        this.docid = docid;
    }

    /**
     * bottom : 824
     * left : 347
     * right : 1486
     * top : 294
     */

    private RectBean rect;
    private String shapetype;
    private String action;
    private String subcommand;
    private int userid;
    private int time;
    private String status;
    @SerializedName("switch")
    private String switchX;



    /**
     * x : 1291
     * y : 304
     */

    private List<ObjdataBean> objdata;

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getFiledir() {
        return filedir;
    }

    public void setFiledir(String filedir) {
        this.filedir = filedir;
    }

    public int getPagenum() {
        return pagenum;
    }

    public void setPagenum(int pagenum) {
        this.pagenum = pagenum;
    }

    public String getDocserver() {
        return docserver;
    }

    public void setDocserver(String docserver) {
        this.docserver = docserver;
    }

    public String getSqlid() {
        return sqlid;
    }

    public void setSqlid(String sqlid) {
        this.sqlid = sqlid;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getTime() {
        return time;
    }
    public void setUserID(int userid) {
        this.userid = userid;
    }

    public int getUserID() {
        return userid;
    }
    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public int getCurrentpage() {
        return currentpage;
    }

    public void setCurrentpage(int currentpage) {
        this.currentpage = currentpage;
    }

    public int getFileid() {
        return fileid;
    }

    public void setFileid(int fileid) {
        this.fileid = fileid;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public int getLinewidth() {
        return linewidth;
    }

    public void setLinewidth(int linewidth) {
        this.linewidth = linewidth;
    }

    public int getObjid() {
        return objid;
    }

    public void setObjid(int objid) {
        this.objid = objid;
    }

    public String getObjtype() {
        return objtype;
    }

    public void setObjtype(String objtype) {
        this.objtype = objtype;
    }

    public int getPointcount() {
        return pointcount;
    }

    public void setPointcount(int pointcount) {
        this.pointcount = pointcount;
    }

    public RectBean getRect() {
        return rect;
    }

    public void setRect(RectBean rect) {
        this.rect = rect;
    }

    public String getShapetype() {
        return shapetype;
    }

    public void setShapetype(String shapetype) {
        this.shapetype = shapetype;
    }
    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }
    public String getSubcommand() {
        return subcommand;
    }

    public void setSubcommand(String subcommand) {
        this.subcommand = subcommand;
    }


    public void setSubcommand(int time) {
        this.time = time;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String switchX) {
        this.switchX = switchX;
    }
    public String getSwitch() {
        return switchX;
    }

    public void setSwitch(String switchX) {
        this.switchX = switchX;
    }

    public List<ObjdataBean> getObjdata() {
        return objdata;
    }

    public void setObjdata(List<ObjdataBean> objdata) {
        this.objdata = objdata;
    }

    public static class RectBean {
        private float bottom;
        private float left;
        private float right;
        private float top;

        public float getBottom() {
            return bottom;
        }

        public void setBottom(float bottom) {
            this.bottom = bottom;
        }

        public float getLeft() {
            return left;
        }

        public void setLeft(float left) {
            this.left = left;
        }

        public float getRight() {
            return right;
        }

        public void setRight(float right) {
            this.right = right;
        }

        public float getTop() {
            return top;
        }

        public void setTop(float top) {
            this.top = top;
        }
    }

    public static class ObjdataBean {
        private float x;
        private float y;

        public float getX() {
            return x;
        }

        public void setX(float x) {
            this.x = x;
        }

        public float getY() {
            return y;
        }

        public void setY(float y) {
            this.y = y;
        }
    }
}
